package com.earthea.message.entity.request;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 留言请求对象
 */
@Data
public class PublishMessageReq {

    @NotNull(message = "父节点不能为空")
    private Long parentId;

    /**
     * 留言
     */
    @NotNull(message = "留言不能为空")
    @Size(min = 3, max = 200, message = "留言长度必须在3到200个字符之间")
    private String content;
}
